package com.lynchcms.cms.dao;

import java.util.List;

import com.lynchcms.cms.model.entity.CmsAuthoritiyResource;
import com.lynchcms.core.dao.BaseDao;

/**
 * 权限资源业务处理DAO--Inf
 * 
 * @author Lynch
 */
public interface CmsAuthoritiyResourceDao extends
		BaseDao<CmsAuthoritiyResource, Long> {

	List<String> getResources(String authoritiyName);
	
	/**
	 * 根据资源的地址来查询此资源可被哪些权限访问 
	 */
	List<String> getAuthoritiy(String url);

	/**
	 * 得到所指定权限id的所有资源 
	 */
	List<CmsAuthoritiyResource> getCmsAuthoritiyResourceList(Long authoritiyId);
	
	void deleteAuthoritiyResource(Long authoritiyId);

}
